<template>
  <el-card class="box-card">
    <div slot="header" class="clearfix title">
      <span>{{title}}</span>
    </div>
    <div class="grid-content">
     <list-item :records="list"></list-item>
    </div>
  </el-card>
</template>
<script>
import ListItem from '../ListItem/Index'
export default {
    components: { ListItem },
    name: 'CaseCard',
    props: {
        title: {
            type: String,
            require: true,
            default: ''
        },
        list: {
            type: Array,
            require: true
        }
    },
    data() {
        return {
        }
    }
}
</script>

<style scoped>
  .clearfix:before,
  .clearfix:after {
    display: table;
    content: "";
  }
  .clearfix:after {
    clear: both
  }

  .box-card {
    width: 100%;
  }
  .title{
    text-align: left;
    font-weight: bold;
  }
  .grid-content{
    min-height: 115px;
  }
</style>
